home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 44
/
Aminet 44 (2001)(GTI - Schatztruhe)[!][Aug 2001].iso
/
Aminet
/
dev
/
gui
/
gtlayout.lha
/
Source
/
LTP_DeleteObjectNode.c
< prev
next >
Wrap
C/C++ Source or Header
|
1999-01-02
|
733b
|
51 lines
/*
** GadTools layout toolkit
**
** Copyright © 1993-1999 by Olaf `Olsen' Barthel
** Freely distributable.
**
** :ts=4
*/
#ifndef _GTLAYOUT_GLOBAL_H
#include "gtlayout_global.h"
#endif
#include "Assert.h"
VOID
LTP_DeleteObjectNode(LayoutHandle *handle,ObjectNode *node)
{
struct Image **ImagePtr = NULL;
switch(node->Type)
{
case PICKER_KIND:
ImagePtr = &node->Special.Picker.Image;
break;
case BUTTON_KIND:
ImagePtr = &node->Special.Button.ButtonImage;
break;
case INCREMENTER_KIND:
ImagePtr = &node->Special.Incrementer.Image;
break;
case TAPEDECK_KIND:
ImagePtr = &node->Special.TapeDeck.ButtonImage;
break;
}
if(ImagePtr)
{
DisposeObject(*ImagePtr);
*ImagePtr = NULL;
}
}